package info.demo.service.impl;

import info.demo.entity.Conta;
import info.demo.entity.ContaPesquisa;
import info.demo.entity.Page;
import info.demo.persistence.ContaDAO;
import info.demo.service.AbstractService;
import info.demo.service.ContaService;

import java.util.Date;
import java.util.List;

public class ContaServiceImpl extends AbstractService<ContaDAO, Conta, Integer> implements ContaService {

	public List<Conta> recuperaContas(ContaPesquisa contaPesquisa, Page p) {
		return serviceDAO.recuperaContas(contaPesquisa, p);
	}

	@Override
	public Conta recuperaContaPorId(Integer idconta) {
		// TODO Auto-generated method stub
		return serviceDAO.getById(idconta);
	}
	
	@Override
	public List<String> recuperaGruposContas() {
		return serviceDAO.recuperaGruposContas();
	}
	
}
